package com.zh.work.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@ApiModel(value = "费率实体类")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sala_rate")
public class SaleRate extends Model<SaleRate> {
  private static final long serialVersionUID = -7647219513904736608L;
  
  @ApiModelProperty(value = "主键", name = "id")
  @TableId(value = "id", type = IdType.AUTO)
  private Long id;
  @ApiModelProperty(value = "机构号", name = "branchNo")
  @TableField(value = "branchno")
  private String branchNo;
  @ApiModelProperty(value = "业务类型(1-传统POS 2-手机APP 3-二维码 4-网关 5-快捷)", name = "bizType")
  private Integer bizType;
  @ApiModelProperty(value = "卡类型(1-借记卡 2-信用卡)", name = "cardType")
  private Integer cardType;
  @ApiModelProperty(value = "结算类型(1-借记卡 2-信用卡)", name = "settleType")
  private Integer settleType;
  @ApiModelProperty(value = "分销级别(0-底价 1-BOSS 2-高级 3-中级 4-低级)", name = "saleLevel")
  private Integer saleLevel;
  @ApiModelProperty(value = "最低分成金额", name = "minAmount")
  private Float minAmount;
  @ApiModelProperty(value = "费率", name = "rate")
  private Float rate;
  @ApiModelProperty(value = "封顶金额", name = "fixed")
  private Integer fixed;

  public SaleRate(String branchNo, Integer cardType, Integer settleType, Integer saleLevel) {
    this.branchNo = branchNo;
    this.cardType = cardType;
    this.settleType = settleType;
    this.saleLevel = saleLevel;
  }
}
